package com.ndp.fb.rdb.model;

import com.ndp.fb.rdb.annotation.Column;
import com.ndp.fb.rdb.annotation.ColumnType;
import com.ndp.fb.rdb.annotation.NoSave;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by Sisi on 14-10-22.
 */
@Setter
@Getter
@NoArgsConstructor
public class BusinessManager implements Serializable {
    private static final long serialVersionUID = -2563350048891087232L;
    /**
     * id
     */
    @Column(type = ColumnType.Long)
    private Long id;
    @Column(value = "fb_businesses_id")
    /**
     * fb_businesses_id
     */
    private Long fbBusinessesId;
    /**
     * name
     */
    @Column
    private String name;
    /**
     * 与mysql无对应关系
     */
    @NoSave
    private Date createTime;

    public BusinessManager(Long fbBusinessesId, String name, Date createTime) {
        this.fbBusinessesId = fbBusinessesId;
        this.name = name;
        this.createTime = createTime;
    }

}
